#ifdef _WINDOWS
#include <windows.h>
#endif

#include <gl/gl.h>
#include <gl/glu.h>

#include "GameScreen.h"

#include <iostream>
using namespace std;
extern HDC hDC;
GameScreen::GameScreen(ScreenManager* _screenManager)
{
	m_screenManager = _screenManager;
}


GameScreen::~GameScreen(void)
{
	
}
string toString(int x)
{
	stringstream ss;
	ss << x;
	string s = ss.str();
	return s;
}
void GameScreen::DisplayText(int _number)
{
	string s = toString(_number);
	DisplayText(s);
}

void GameScreen::DisplayText(string _string)
{

	glRasterPos2i(0.0f,0.0f);
	void * font;
	//font = GLUT_BITMAP_9_BY_15;
	font = GLUT_BITMAP_TIMES_ROMAN_24;
	//font = GLUT_BITMAP_HELVETICA_18;
	for (string::iterator i = _string.begin(); i != _string.end(); ++i)
	{
		char c = *i;
		glutBitmapCharacter(font, c);
		//glutStrokeCharacter(GLUT_STROKE_ROMAN, c);
	}
}